package org.lightcommons.bean;

import org.hibernate.validator.Min;
import org.hibernate.validator.Pattern;
import org.hibernate.validator.Range;

public class MyPojo {
	@Pattern(regex="^\\w+")
	private String username;
	@Min(0)
	private int count;
	@Range(min=1990,max=2030)
	private int year;
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	
}
